broadway: Build fixes
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 15 Aug 2017 12:57:53 +0000 (13:57 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 15 Aug 2017 12:59:34 +0000 (13:59 +0100)
The Broadway backend does not build after commit c409fca7 dropped some
occurrences of the root window from GDK.

gdk/broadway/gdkdevice-broadway.c
gdk/broadway/gdkwindow-broadway.c

index 4a6bf680b1c00e8114e4b29031c7ccfdd2611c7c..4ac423c2d55cf5c1497659955333ea6b6519e333 100644 (file)
@@ -172,9 +172,9 @@ gdk_broadway_device_query_state (GdkDevice        *device,
   if (root_y)
     *root_y = device_root_y;
   if (win_x)
-    *win_x = device_root_x - toplevel->x;
+    *win_x = device_root_x;
   if (win_y)
-    *win_y = device_root_y - toplevel->y;
+    *win_y = device_root_y;
   if (mask)
     *mask = mask32;
   if (child_window)
index 0967ffe6118d28a0628a8486d9e278ecfca2df19..17075bb86bc022f7b6aac935454727ec1a5f7dea 100644 (file)
@@ -724,7 +724,7 @@ gdk_window_broadway_get_device_state (GdkWindow       *window,
     return FALSE;
 
   GDK_DEVICE_GET_CLASS (device)->query_state (device, window,
-                                              NULL, &child,
+                                              &child,
                                               NULL, NULL,
                                               x, y, mask);
   return child != NULL;